<!-- PAGE CONTENT WRAPPER -->
<div class="page-content-wrap">

    <div class="row">
        <div style="background: #ffffff;">

            <form class="form-horizontal" name="addTSForm" novalidate>
                <div class="panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title"><strong>{{'基本信息' | dyLanguage}}</strong></h3>
                        <!--<ul class="panel-controls">-->
                        <!--<li><a href="javascript:void(0)" class="panel-remove"><span class="fa fa-times"></span></a></li>-->
                        <!--</ul>-->
                    </div>
                    <div class="panel-body panel-dialog">
                        <p>{{'请按照提示输入各项信息。' | dyLanguage}}</p>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">{{'图片' | dyLanguage}}</label>

                            <div class="col-md-6 col-xs-12">
                                <div class="profile-image">
                                    <img style="min-height: 50px;min-width: 50px;max-width: 100px;max-height: 100px;" ng-src="{{currentContentDynamicHtml.picture | faceUrl}}" ngf-select ngf-change="uploadPicture($files)" ngf-pattern="'image/*'"
                                         ngf-accept="'image/*'"
                                         ngf-max-size="20MB" ngf-min-height="100" ngf-resize="{width: 1000, height: 1000}" style="cursor: pointer"/>
                                </div>
                                <span class="help-block">{{'请上传图片' | dyLanguage}}<i style="cursor: pointer; "><span ng-show="showPictureProgress">({{pictureProgress.value}}%)</span></i></span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">{{'名称' | dyLanguage}}</label>

                            <div class="col-md-6 col-xs-12">
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="fa fa-pencil"></span></span>
                                    <input type="text" class="form-control" name="name" ng-model="currentContentDynamicHtml.name" required/>
                                </div>
                                <span class="help-block" ng-show="(addSCForm.name.$untouched && !addSCForm.$submitted) || addSCForm.name.$valid">{{'请输入名称' | dyLanguage}}</span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">{{'类型' | dyLanguage}}</label>

                            <div class="col-md-6 col-xs-12">
                                <div class="input-group">

                                    <select ng-change="changeDynamicHtmlType()" class="form-control" options="type" name="type"
                                            ng-options="y.name for (x, y) in typeOptions | dySelectLanguage" ng-model="currentContentDynamicHtml.typeOption">
                                        <option value="">{{'请选择' | dyLanguage}}</option>
                                    </select>
                                </div>
                                <span class="help-block">{{'请选择类型' | dyLanguage}}</span>
                            </div>
                        </div>

                        <div class="form-group" ng-show="currentContentDynamicHtml.dynamicHtmlType == 'VIDEO' || currentContentDynamicHtml.dynamicHtmlType == 'AUDIO'">
                            <label class="col-md-3 col-xs-12 control-label">{{'最低完成时长' | dyLanguage}}</label>

                            <div class="col-md-6 col-xs-12">
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="fa fa-pencil"></span></span>
                                    <input type="text" class="form-control" name="mustTime" ng-model="currentContentDynamicHtml.mustTime" required/>
                                </div>
                                <span class="help-block" ng-show="(addSCForm.mustTime.$untouched && !addSCForm.$submitted) || addSCForm.mustTime.$valid">{{'请输入最低完成时长' | dyLanguage}}</span>
                            </div>
                        </div>

                        <div class="form-group" ng-show="currentContentDynamicHtml.dynamicHtmlType == 'H5'">
                            <label class="col-md-3 col-xs-12 control-label">{{'最低完成页数' | dyLanguage}}</label>

                            <div class="col-md-6 col-xs-12">
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="fa fa-pencil"></span></span>
                                    <input type="text" class="form-control" name="name" ng-model="currentContentDynamicHtml.mustPage" required/>
                                </div>
                                <span class="help-block" ng-show="(addSCForm.mustPage.$untouched && !addSCForm.$submitted) || addSCForm.mustPage.$valid">{{'请输入最低完成页数' | dyLanguage}}</span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">{{'URI' | dyLanguage}}</label>

                            <div class="col-md-6 col-xs-12">
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="fa fa-pencil"></span></span>
                                    <input type="text" class="form-control" name="uri" ng-model="currentContentDynamicHtml.zip" required/>
                                </div>
                                <span class="help-block" ng-show="(addSCForm.uri.$untouched && !addSCForm.$submitted) || addSCForm.uri.$valid">{{'请输入URI' | dyLanguage}}</span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">{{'描述' | dyLanguage}}</label>

                            <div class="col-md-6 col-xs-12">
                                <textarea class="form-control" rows="5" ng-model="currentContentDynamicHtml.remark"></textarea>
                                <span class="help-block">{{'请输入描述' | dyLanguage}}</span>
                            </div>
                        </div>

                    </div>
                    <div class="panel-footer" style="text-align: center;">
                        <button class="btn btn-danger" ng-click="cancel()"><i class="fa fa-times"></i>{{'关闭' | dyLanguage}}</button>
                        <button class="btn btn-danger" ng-click="submit()"><i class="fa fa-times"></i>{{'保存' | dyLanguage}}</button>
                    </div>
                </div>
            </form>

        </div>
    </div>

</div>
<!-- END PAGE CONTENT WRAPPER -->